
#include "../libpatches.h"
#include "textout.h"
#include <stdio.h>

static void module_textout_processor(module m);

void module_textout_initializer(module m) {
	m->customizer = customizer_count_inputs;
	m->processor = module_textout_processor;
}

static void module_textout_processor(module m) {
	input * i = m->inputs;
	int count = m->input_count;

	/*
	fprintf(stderr, "processing textouter\n");
	*/
	for (;count--; i++) 
		fprintf(stdout, "%f%c", 
			(**i ? ***i : 0), 
			(count ? '\t' : '\n')
		);
}
